import request from "../../request.js"

// 获取全部用户数据
export function getAllUserMobles(paramater) {
    return request({
        url: '/getAllUserMoble',
        method: 'get',
        params: paramater
    })
}

// 获取全部医师数据
export function getAllDoctors(paramater) {
    return request({
        url: '/getAllDoctors',
        method: 'get',
        params: paramater
    })
}

// 获取平台10日内用户增长数据 params: Array => ['2022-5-1', '2022-5-2', ..., '2022-5-10']
export function getSystemUsersData(params) {
    return request({
        url: '/getSystemUsersData',
        method: 'post',
        data: params
    })
}

// 获取平台文章来源统计数据
export function getSystemArticleSource(params) {
    return request({
        url: '/getSystemArticleSource',
        method: 'get',
        params: params
    })
}

// 获取前五位活跃用户
export function getuserDynamicSort(params) {
    return request({
        url: '/getuserDynamicSort',
        method: 'get',
        params: params
    })
}

// 修改密码
export function changePass(params) {
    return request({
        url: '/editPassword',
        method: 'post',
        data: params
    })
}